Skip to content

Conversation

@ChiragAgg5k
Copy link
Member

@ChiragAgg5k ChiragAgg5k commented Jan 22, 2026

Summary by CodeRabbit

  • Chores
    • Updated PHP package dependencies to a consolidated, more consistent set.
  • Refactor
    • Adjusted internal package import structure for improved compatibility and maintainability.

@coderabbitai
Copy link

coderabbitai bot commented Jan 22, 2026

Walkthrough

Updated project dependencies in composer.json: replaced utopia-php/framework and duplicate fetch entries with utopia-php/servers (0.2.), utopia-php/fetch (0.5.), utopia-php/telemetry (0.2.), and utopia-php/validators (0.2.) alongside existing packages. Updated import statements in src/Queue/Job.php and src/Queue/Server.php to use Hook from Utopia\Servers instead of Utopia. Three files changed in total with minor line edits.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing the utopia-php/framework dependency and replacing it with utopia-php/servers, which aligns perfectly with the changeset modifications in composer.json and the import updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch remove-framework-dependency

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ChiragAgg5k ChiragAgg5k changed the title chore: use framework 0.34 chore: remove utopia-php/frameork dependency and use utopia-php/di Jan 22, 2026
@ChiragAgg5k ChiragAgg5k changed the title chore: remove utopia-php/frameork dependency and use utopia-php/di chore: migrate to utopia-php/di Feb 2, 2026
@ChiragAgg5k ChiragAgg5k changed the title chore: migrate to utopia-php/di chore: remove framework dependency and use utopia-php/servers Feb 3, 2026
@ChiragAgg5k ChiragAgg5k force-pushed the remove-framework-dependency branch from fef9c57 to 271bf88 Compare February 3, 2026 05:32
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In `@composer.json`:
- Around line 33-34: Update the composer.json dependency entry for
"utopia-php/telemetry" to use a constrained semver range instead of the wildcard
"*" (e.g., "0.2.*") so builds are reproducible and aligned with the project's
other utopia dependencies such as "utopia-php/servers" — locate the
"utopia-php/telemetry" line in composer.json and replace "*" with "0.2.*", then
run composer update or composer validate to ensure the lockfile and constraints
are consistent.

In `@src/Queue/Server.php`:
- Line 8: Add a public getInjections() method to the Utopia\Servers\Hook class
that returns the protected $injections property (mirroring the existing
getParams() / getGroups() pattern used by Server::getArguments()); implement it
as a simple public getter (same visibility and return style as
getParams/getGroups) so calls like Server::getArguments() can access the
injections array.

@ChiragAgg5k ChiragAgg5k force-pushed the remove-framework-dependency branch from 766ce5b to 7b89d87 Compare February 3, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants